package code._12file._01introduction;

import java.io.File;
import java.io.FileDescriptor;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {
        System.out.println(System.getProperty("user.dir"));

        File file1 = new File("fileTest");
        System.out.println("file1 = " + file1);
        System.out.println(file1.exists());

        boolean newFile = file1.createNewFile();

        File file2 = new File("fileTest\\aa\\bb\\cc");
        boolean dir = file2.mkdirs();
        System.out.println("dir = " + dir);
    }
}
